package com.zjipc.exam2024review.service.impl;

import com.zjipc.exam2024review.domain.Book;
import com.zjipc.exam2024review.mapper.BookMapper;
import com.zjipc.exam2024review.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService implements IBookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public List<Book> selectBookList(Book book) {
        return bookMapper.selectBookList(book);
    }

    @Override
    public Integer insertBook(Book book) {
        return bookMapper.insertBook(book);
    }

    @Override
    public Integer deleteBookById(Integer bookId) {
        return bookMapper.deleteBookById(bookId);
    }
}
